home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 26.zip
/
BS1 part 26
/
Aztec C v5.2a disk 4.adf
/
204fd.lzh
/
iffparse_lib.fd
< prev
next >
Wrap
Text File
|
1991-03-14
|
2KB
|
59 lines
* "iffparse.library"
##base _IFFParseBase
##bias 30
##public
*--- functions in V33 or higher (distributed as Release 1.2) ---
*------ Basic functions ------
AllocIFF()()
OpenIFF(iff,rwMode)(a0,d0)
ParseIFF(iff,control)(a0,d0)
CloseIFF(iff)(a0)
FreeIFF(iff)(a0)
*------ Read/Write functions ------
ReadChunkBytes(iff,buf,size)(a0/a1,d0)
WriteChunkBytes(iff,buf,size)(a0/a1,d0)
ReadChunkRecords(iff,buf,bytesPerRecord,nRecords)(a0/a1,d0/d1)
WriteChunkRecords(iff,buf,bytesPerRecord,nRecords)(a0/a1,d0/d1)
*------ Context entry/exit ------
PushChunk(iff,type,id,size)(a0,d0/d1/d2)
PopChunk(iff)(a0)
*--- (1 function slot reserved here) ---
##bias 102
*------ Low-level handler installation ------
EntryHandler(iff,type,id,position,handler,object)(a0,d0/d1/d2/a1/a2)
ExitHandler(iff,type,id,position,handler,object)(a0,d0/d1/d2/a1/a2)
*------ Built-in chunk/property handlers ------
PropChunk(iff,type,id)(a0,d0/d1)
PropChunks(iff,propArray,nProps)(a0/a1,d0)
StopChunk(iff,type,id)(a0,d0/d1)
StopChunks(iff,propArray,nProps)(a0/a1,d0)
CollectionChunk(iff,type,id)(a0,d0/d1)
CollectionChunks(iff,propArray,nProps)(a0/a1,d0)
StopOnExit(iff,type,id)(a0,d0/d1)
*------ Context utilities ------
FindProp(iff,type,id)(a0,d0/d1)
FindCollection(iff,type,id)(a0,d0/d1)
FindPropContext(iff)(a0)
CurrentChunk(iff)(a0)
ParentChunk(contextNode)(a0)
*------ LocalContextItem support functions ------
AllocLocalItem(type,id,ident,dataSize)(d0/d1/d2/d3)
LocalItemData(localItem)(a0)
SetLocalItemPurge(localItem,purgeHook)(a0/a1)
FreeLocalItem(localItem)(a0)
FindLocalItem(iff,type,id,ident)(a0,d0/d1/d2)
StoreLocalItem(iff,localItem,position)(a0/a1,d0)
StoreItemInContext(iff,localItem,contextNode)(a0/a1/a2)
*------ IFFHandle initialization ------
InitIFF(iff,flags,streamHook)(a0,d0/a1)
InitIFFasDOS(iff)(a0)
InitIFFasClip(iff)(a0)
*------ Internal clipboard support ------
OpenClipboard(unitNum)(d0)
CloseClipboard(clipboard)(a0)
*------ Miscellaneous ------
GoodID(id)(d0)
GoodType(type)(d0)
IDtoStr(id,buf)(d0/a0)
##end